﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditProdAttr.aspx.cs" Inherits="Com.CMS263.Web.manage.ProdAttr.EditProdAttr" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <link href="/manage/style/main.css" rel="stylesheet" type="text/css" />
    <link href="/manage/style/style.css" rel="Stylesheet" type="text/css" />
    <link href="/manage/common/validator.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../../js/jquery-1.3.2.min.js"></script>

    <script language="javascript" type="text/javascript" src="../js/js_global.js"></script>

    <script language="javascript" type="text/javascript" src="../js/js_extlib.js"></script>

    <script language="javascript" type="text/javascript" src="../js/pager.js"></script>
    <script language ="javascript" type ="text/javascript" >
    $(function(){
        $("#ddlType option").each(function() {
        if($(this).attr("value")=='<%=atr %>'){ 
        $(this).attr("selected","true");
        }
    </script>
   <style type="text/css">
        
        #Spaattrv {
	display: block;
	float: right;
	width: 140px;
	position: relative;
	right: 20px;
	*top: -100px;
}

    </style>
</head>
<body style="background-color:#ffffff">
    <form id="form1" runat="server">
    <div>
    <table border="0" style="width:70%"  cellspacing="0" cellpadding="0" class="dstable">
            <tr>
                <td height="23" class="table_2">
                    添加/修改 扩展属性
                </td>
            </tr>
            <tr>
                <td class="tdside" align="left">
                </td>
            </tr>
            <tr>
                <td>
                    <table border="0" cellspacing="5" cellpadding="5" class="n_dstable">
                        
                        <tbody  class="data_tb">
                        <tr style="text-align: left">
                                <td class="qian" >
                                    类型名称
                                </td>
                                <td>
                                    <asp:Label ID="lblTypeName" runat="server" ></asp:Label>
                                    
                                    
                                </td>
                                
                            </tr>
                            <tr style="text-align: left">
                                <td class="qian" >
                                    属性中文名
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAttrName" CssClass="input_text" Width="300px"  MaxLength ="50" runat="server"></asp:TextBox>
                                </td>
                                
                            </tr>
                            <tr  style="text-align: left">
                                <td class="qian" >
                                    属性名
                                </td>
                                <td>
                                   <asp:TextBox ID="txtAttrEnName" CssClass="input_text" Width="300px" MaxLength ="50" runat="server"></asp:TextBox>
                                </td>
                                
                            </tr>
                            <tr  style="text-align: left">
                                <td  class="qian" >
                                    属性类型
                                </td>
                                <td style="text-align: left ">
                                 <asp:DropDownList ID="ddlType" Enabled="false" Width="200px"  runat="server">
                                        <asp:ListItem Value="0">请选择...</asp:ListItem>
                                        <asp:ListItem Value="1">单行文本框</asp:ListItem>
                                        <asp:ListItem Value="2">多行文本框</asp:ListItem>
                                        <asp:ListItem Value="3">在线编辑器</asp:ListItem>
                                        <asp:ListItem Value="4">上传图片</asp:ListItem>
                                        <asp:ListItem Value="5">上传文件</asp:ListItem>
                                        <asp:ListItem Value="6">单选框</asp:ListItem>
                                        <asp:ListItem Value="7">多选框</asp:ListItem>
                                        <asp:ListItem Value="8">下拉框</asp:ListItem>
                        </asp:DropDownList>
                        <span style ="color :Red; text-align: left " >单选框、多选框、下拉框需在可选值列表输入值</span>
                                </td>
                                
                            </tr>
                            <tr  style="text-align: left ">
                                <td class="qian" >
                                    可选值列表
                                </td>
                                <td> 
                                    <asp:TextBox ID="txtAttrValue" Enabled="false" TextMode="MultiLine" MaxLength ="500" Width="300px" Height="100px" runat="server"></asp:TextBox>
                                <span id="Spaattrv" style ="color :Red; text-align: left  vertical-align:top;">内容回车<br />分开例如：<br />白色<br />红的<br />黄色</span></td>
                                
                                </td>
                                
                            </tr>
                            <tr  style="text-align: left ">
                                <td class="qian" >
                                    不能为空
                                </td>
                                <td>
                                    <asp:CheckBox ID="chbIsNull"  runat="server" /> 
                                </td>
                                
                            </tr>
                            <tr  style="text-align: left ">
                                <td class="qian" >
                                    后台列表显示
                                </td>
                                <td>
                                   <asp:CheckBox ID="chbShowBack" runat="server" /> 
                                </td>
                                
                            </tr>
                            <tr  style="text-align: left">
                                <td class="qian" >
                                    默认值
                                </td>
                                <td>
                                   <asp:TextBox ID="txtDefaultValue" Width="300px" MaxLength ="50"  CssClass="input_text" runat="server"></asp:TextBox>
                                </td>
                                
                            </tr>
                            <tr  style="text-align: left">
                                <td class="qian" colspan="2" >
                                 <input type="hidden" name="iid" id="iid" value="<%=pro.Id%>" />
                                  <input type="hidden" name="ptid" id="ptid" value="<%=pro.ProdTypeId%>" />
                                    <asp:Button ID="btnSubmit" CssClass="btn4_out"  onmouseover="this.className='btn4_over'" onmouseout="this.className='btn4_out'" runat="server" Text="提交" onclick="btnSubmit_Click" /> &nbsp;&nbsp;
                                    <input type="button"  onclick="javascript:window.location.href='ProdTypeAtt.aspx?ptid=<%=pro.ProdTypeId%>&page=<%=page%>'" value="返回" />
                
                                     &nbsp;&nbsp;
                                </td>
                            </tr>
                        </tbody>
                        
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
